building a custom interactive binary tree in angular