Fixed bug in GPU reduction. Added sustain metric.

Fixed bug in db gen script ignoring lifesteal.
Simplified lattice construction interface.