Added makefile; removed posix_memalign
added Makefile; fixed thread struct allocation
Added Makefile. Switched allocation method for thread creation.