added v1 of heuristic B (extension of A)