Added a Nearest-Neighbor Algorithm and Layer