added sparseN.m