The Structure of Intelligence: A New Mathematical Model of M