Made global rotation use hash maps instead of std vectors. This will be more useful going forward.

Change-Id: Ifa7ca522844dd2b82a49d9e097b7d4d83a3aa9b5