Added getGapCost

It is a rough cost, not all cases are specified exactly.