Two storage methods for balancing binary trees and sequential binary trees