estimation func of the algo (for debuging)