Tiny balls fit best inside a sausage, physicists confirm