Fix 5.2.2 - building a proper binary search tree