Mathematician Geordie Williamson spent eight years cracking the code to find the weight of atoms in space