Fixing bugs in calculation of AdjacentOriginMapCalculator by reusing the DirectLineOriginMapCalculator