refined functions names
improved binary codes capacity
added isLeaf function to binary trees
implemented main functionality
removed placeholders