Category theory approach to natural intelligence