move files to source folder

main.cpp, patterns.cpp, test_patterns.cpp