Fix balance function; clean up insert method.
Fix tests for balance
Fix merge conflicts
Fix merge conflicts
Merge branch 'bst'