asgn4: all nearest neighbors