Finds local minima of RNA + constructs barrier tree