Refactor: Renaming directory from sdm to src
Minor changes and a new test called test_memory_thread