Simple binary tree implementation