added cvMatToBinaryFile