Dad's Qmatrix.c v1.05