Structured sparse coding via lateral inhibition