order of magnitude speedup when we can fit the full cost table in memory
Merge branch 'constraints' of github.com:ucbvislab/radiotool into constraints