minimal arrangement of wooden blocks