save sparse vectors to file