Small modifications and final algorithm.

Closed Roel Aaij requested to merge github/fork/JhaPrajjwal/master into GSoC_2019

Created by: JhaPrajjwal

Merge request reports