Formation of cortical cognitive map by self-organization