changed shared memory to dynamic allocation

also got code compiling for Moore 100 computers