Object-oriented modeling of sparse matrix operation in power system software