Added initial memos-2 code with thread library. Prothreads have not been implemented yet.