The SIM neural module: self-organized learning of 2D invariant representations