Sparse representation and fast processing of massive data