cmake: added clang sanitizers
cmake: added modeline

Also cleaned up commented code
cache: use memmove for overlpping ranges