Self-Organised Clustering As A Basis For Cognition And Machine Intelligence