Implemented the Jumble algorithm