improvements to cross_validation module