Replacing AVL tree code with a simpler one.

The previous AVL tree implementation for reuse distance calculation was getting
too cumbersome to debug. Replacing it std::vector instead.