Predictive Coding Machine for Compressed Sensing and Image Denoising