Dad's Qmatrix.c v1.02