Makes map_merger faster by utilizing rotation matrix