adding non-sparse implementation
removing plain sag implementation