Squarified Treemap algorithm implemented functionally using Mathematica