pad A,B,S to length N in getM. closes #109
Merge pull request #110 from dannycoates/api-3

pad A,B,S to length N in getM