Parallelizing the first phase of the algorithm with ExecutorService 1.6.
Signed-off-by: Tihomir Gvero <tihomir.gvero@gmail.com>