Correctly adds values to binary tree