start of dictionary learning using spams library