Fix typo
Split out complexity into helper file

Was duplicated in cintprob/cprob, with different implementations of mult...
Merge pull request #2 from mmjb/master

Split complexity type/helpers to own file