Less conversion between alg and index in inner workings of program