Object oriented sparse matrix computation for power system simulation