Added bug fixes and updated memory alloc to be a ulong count.
Missed header addition.
Merge pull request #22 from dstar4138/master

Mem log fix and Memo Algo fix.