find a stack of boxes decreasing in every dimension, a bit of longest path in a DAG, and a bit of dynamic programming
Merge branch 'master' of https://github.com/scrawlings/DSAinJS