[math-fun] First fit optimal collections