c_regularity function

c-regularity calculates c-regularity as 1 - OPTICS cordillera for k=2. The higher the more regular.