how were the pyramids built so perfect