Started the implementation of extract_ridges and the respective test