revamp shotsum: add many algorithms, permutations