add -fsanitize to linker and not -lasan
fix various errors in reducing the result of distribution
switch back to standalone program, as debugging a .so with Mathematica is hell