Initial implementation of binary tree