Text this: A quantum entanglement-based algorithm for discriminating non-orthogonal qubits