Text this: Simple quantum circuit for pattern recognition based on nearest mean classifier