I would think you could use a couple of variables (one for highest, one for lowest). Store the value of the 1st point in both then use a WHILE loop to compare the next point to each. If it's > than the "highest" variable, replace it, or if it's < the "lowest" variable, replace that.