extract calculate tag histogram, add some prints
add recursiveness to partitioning algorithm, but need to find a way for the return value
add return value to recursive method