Implementation of the Jump Point Search algorithm