Actually, I think I might have made a mistake with the indices. Maybe it should be ```(i*(i-1)>>1) + j - 1```