Implements the Prüfer sequence algorithm in pure javascript, for space-efficient representation of trees using  a unique sequence. Useful for generating random trees of data.