cleaned up the numeric tracer to work with matrix multiplications