refactored so that each time around the loop either moves forwared datai or sizei
refactored so that each time around the loop either moves forwared datai or sizei

diana-hep/femtocode,diana-hep/femtocode