extended library to handle non-power-of-two trees.  also extended readme