Implementation for checking the search speed in RB and AVL tree