misc analysis script for hqx (hq2x hq3x hq4x) algorithms