bug fix in rotateLeft, rotateRight