Updates compress to use IterBase
Replaces .begin/.end with std::begin/end