added algorithm with cutting prefixes
added second algorithm
Merge branch 'algorithm' into development