Refactored NSGA2, Non-dominated sorting genetic algorithm, implementation in C, based on the code written by Dr. Kalyanmoy Deb.