Create example1.c

Gather Candidates and Calculate the sortest neighbors