Refactored CvArr classes