* Massively improved the performance of the algorithm