The code in JS for this algorithm
The code is free for anyone to copy and use...The copied code must have the same code and indentation as above if used. This algorithm is the latest version (v1.0) and will be soon updated with more features and mobility