Adding an absolutely magical algorithm. Can't describe the beauty of it. Thanks to the one who uploaded it on his/her website