finding the boundary for double cost for misclassifying a instead of b