Hierarchically semi-separable representation and its applications