Change weird loop var names to i,j,k for consistency

No idea why there are all sorts of letters in here but use the i,j,k
convention so we don't lose track of who's who