Implemented compression
Use idiomatic version to compress consecutive items