The first transcontinental railroad made it possible to travel from Atlantic to Pacific in just a few days