Adding a module to compute the weighted gradient matrix