How do I calculate how to do this? I believe I need to maximise the perimeter of the units while minimising the area they take up, and also allowing access space for a human. I will probably end up with a comb shape, but I am intellectually curious about the mathematics involved. No need for exact dimensions as I'm more interested in generic formula. Let's discount the variable configuration units that slide out, since I want to view all my books at once.