change from struct of points to 2 separate arrays

1 array for values, 1 array for fixed flag
should be able to get a speedup since floats are now closer together
try comparing with previous commit
sped up code by removing averaging function and just doing it in the loop