add & test the aglorithm finding diameter of a Tree specified