Converted all distance and path(sigma) from maps to arrays.Overall times seem to have improved.Ratios still to be seen.@Aritra:Check first for correctness and then run some tests.