To write delete, left rotate, right rotate,  first left then right rotate and first right than left rotate methods based on a binary search tree.