libfpoly matrix functions added