Stack overflow at rotation in AVL Tree