Biologically Inspired Model for Visual Cognition Achieving Unsupervised Episodic and Semantic Feature Learning