implemented BlockSparse_accGradParameters