Implement read write function for CvKNearest

Implement the missing read write function which allow saving and loading of CvKNearest data.