added lock in identity
better function for CrossValidation, but invalidating the usefulness of lazy in testSet