The origin of mind: Evolution of brain, cognition, and general intelligence