defined heuristic for Linear Cost Function