Added gradient of shape functions for triangular elements.