add Native memory allocation samples