Make test automated
src: Use memcpy rather than memset and a loop

Speeds up the program a bit :)
Merge pull request #2 from stephenmathieson/automated-tests

Make test automated
Merge pull request #3 from stephenmathieson/memcpy

src: Use memcpy rather than memset and a loop
merge conflict