importing ssparse in constructor

Fixed the import issue. Now import happens in the constructor