Quantum algorithms for nearest-neighbor methods for supervised and unsupervised learning | Synapse