Adjusted range for i,j,k in generalized order solver