Added more functionality to meandist, and added vq3 from MATLAB source code