The sphere packing problem in dimensions 8 and 24