Implementation of the frogSIm algorithm