Updated rotateLeft to reflect changes in rotateRight