playing with BST and counting sort