binary search tree creation from lists