Implements system call getpid(). Need further debugging but it seems to work well.