OS-2339 modify crossValLoss to use more efficient calculation of area, new unit tests