Pattern Recognition Theory of Mind