Worked on pre-processing. Now almost ready to start on the actual algorithm.