added code for sparse S and sparse MM
added Viktoria as contributor