Scientists may have solved mystery behind Egypt's pyramids