Basic implementation of binary tree