Trim Optimization, Block Scheduling, and Car Loading Software by Matrix