MtsCopa algorithm should basically work now

fixed bugs, but it doesnt do any compression still