Tree improved, added for each node, getLeaves and getPaths fucntions, not a fast solution but whatever for now... To the main util set added array prototypes isUnique and unique, self explanatory