Update array1.h

fixes error "memcpy is not a member of std"
Update main.cpp

main must return int (at least on my OS/compiler combo)
added a CMakeLists.txt
removed unnecessary flags
Merge pull request #1 from dcanelhas/master

some small 'bugs' and CMAKE