http://www.mathworks.com/matlabcentr...-algorithm.PNG