correctly setup the encoding for all the files in algo1
add more algorithms and test cases. todo: make all tests pass