added queries to main, added const to selectNary tuple, slight improvements to selection get_next