creating a $P-recogniser in blueprints

Hi, im creating a $P-recogniser algorithm for gesture recognition in VR. Im starting in the first person template just as a way to get started before moving to VR and im aware the algorithm is built for 2D however ive started changing it to handle 3D.

The one issue um having is with the cloud distance algorithm given in the psuedocode:
image

The issue here is that “I” is not incrememted by a whole number, and in the next stage of the algorithm i need I to be used as an index for an array. Could anyone please explain how this should be done.

Ill leave the link to the paper documenting the psuedocode:

Here is the first section i was talking about with I being incremented by step, which is not a whole number: