Made getLinesCols result type Position instead of pair of integers.