Ruby version needs coefficient matrix
Using Dave's MIT-licensed GAA.h