added files from Sungjin Lee for tests/algo1_nandsim_manual
initial commit of code from Sungjin Lee for tests/algo1_nandsim_manual with updates to existing libraries for kernel compilation errors