implemented the greatest difference algorithm
implemented the greatest difference algorithm

lucasviola/algorithms.js,cristianounix/algorithms.js,gibatronic/algorithms.js,felipernb/algorithms.js,princesust/algorithms.js,thotty/algorithms.js