Optimised rotate function. thx to bosie
removed test for first argument.
Using ||,  && operator instead of |, &

Fixed shiftLeft, shiftRight.

some cosmetics.