Adaptive Sampling and Reconstruction for Sparse Magnetic Resonance Imaging