Folding changes implemented, makes really bad folding though. Could be a bug or just a bad algorithm. Also started to modify the algorithm to recognize -2 as a pseudopair, but that isnt fully implemented
Code complete and functional