linked list cell index modulus calculation fixed