Moves binary tree insert value to separate method