Add the ability to compute any kind of FEM matrix and vector. Fix #2 issue.