Implemented Hunt and Kill algorithm.