Binary Tree Sort in C