what part of brain is responsible for complex thinking