started refactoring functions regarding Sigma
fast food implementation appears done.
started gradient implementation for degenerate kernels