add memory segments example.
add heap allocation example.
heap example with malloc extracted to a function with error checking.
add example to write a file using a file descriptor.
add example of AND and OR tables.