Updated util.h and height_ridge_extractor.cc