Still not sure if the recursive mondrian algorithm is the best option for this but having progress to make it going