First inefficient version
Cleaned up quite generally and did bug fixing
Merge branch 'master' of https://github.com/TheEnzyme/stringCalculus