case with unsorted array
calculation of breadth and simple drawing of tree