sparse-representation code v1.0