Compressed Sensing: from Cosmology to Magnetic Resonance Imaging