added check method to MyAVLTree