Novel compressed sensing algorithms with applications to magnetic resonance imaging