added MST getAllElements()