Added better Q4 reduction algo, plus runtime analysis.