added compare.c file for part 3 - real-world networks