Reordering of the subsections in methodology to follow the actual steps of the algorithm. Very minor changes.