completed testing of add functionality
modified rotation logic to correctly rotate the tree