Create alogorithm for match between students