what I've done until now, the sorting and the binary tree is finished.