Faster SDM

This little PR brings some extra speed to SDM, mainly by adding the new function `extract_local_patches_fast`.