wip. Adding sampler class, writing tests for CPcaCompression