Refactored to use classes
Succeeded in getting the svd compressor to work with the builtin svd.