switched from numeric to sylvester library for matrix operations