Add C sparse implementation in Cython