library List {
  /** Removes the value at the given index in an array. */
  function removeIndex(uint[] storage values, uint i) internal {      
    if(i<values.length){ 
        while (i<values.length-1) {
            values[i] = values[i+1];
            i++;
        }
        values.length--;
    }
  }
}
function removeIndex(uint[] storage values, uint i) internal {      
  if(i<values.length){ 
      while (i<values.length-1) {
          values[i] = values[i+1];
          i++;
      }
      values.length--;
  }
}

/** Removes the value at the given index in an array. */