renamed class generaltree to binarySearch