Efficient use of singular hierarchical vector functions for the FEM solution of multiscale problems