my incomplete solution because pop screws up min
unborked, have each node keep track of min