Making the 10 racks fit into 2 Td is pretty tight. But it is doable.
Taking the USN 6'4" x 3' x 2'6" as standard and rounding up to next 5 cm... 1.9x50.95x0.75, then adding a locker off the end...
we get about 2.1x0.95x0.75. 4 tall. u shaped well... can fit 12 in...
Now, if we want more space... 2 bunkrooms, 4 racks high, 20 racks, leving 1/3 of the space external to the two. Note that C racks are end-open, while B are half-side open, and A are either, depending upon whether there's facing bunkroom space...
Code:
A B B D D E
A C C E
Put 4 in a cluster, and you easily get extra space outside.
Code:
A B B D D E
A C C E
F H H J
F G G I I J
(All ascii art assumes 1m grids.