Bug Fix

Fixed error in rotate right method
moved code to new folders