similarities between critical thinking and problem solving