Lossy Compression via Sparse Linear Regression: Computationally Efficient Encoding and Decoding