Added a way to get the minimum node.