rotate left and rotate right implemented