The Biological Basis of Intelligence. Part I: Theory