Added graphics, removed nearest neighbor algorithm