added attempt at visitor for binary trees