replaced most int with uword or sword when used for indices of armadillo
objects, uvec or ivec entries.