implementation of posix_memalign()
move random number function into pseudo namespace
new implementation of aligned memory allocation
add error check