added some feature stubs and started working on nearest algorithm