A program to find stars in the galaxy that are close to each other