Change linear store to use less memory.
Faster multithreading by forcing threads to change internal structure of other nodes.
Update belief propagation programs to use structs.