Use Algorithm.descendants instead of constant Hash

By using Algorithm.descendants the list of algorithms can grow without
the need for adjusting the constant.