adding cubify and rollup methods to RichPipe

Pull request for #809