Add C++ computation of polyTerms matrix
Remove unused base conversion function