[ADDED] Partial implementation of matrix compression