#1285 Moved trace to generic_matrix tools, changed return type to Matrix
#1285 Added SparsityInterface base class
#1285 Moved horzcat, vertcat to SparsityInterface