Added findMaxDepth function

new function returns the maximum depth of nodes in the dataset