Factor Fitting, Rank Allocation, and Partitioning in Multilevel Low Rank Matrices