Support for the sparse version of filterSD
Fixes for #66