add binary search tree checker, poorly done implementation