Implemented creation of binary tree