Sample binary tree implementation