The Least-Squares Method With Blended Hierarchical Basis Functions