Improved Matlab interface by using mexopencv code.
Added Matlab support in GrayValueHistogram for writeToFile() and readFromFile().
changed distance method in GrayValueHistogram to use selected distance