add example to show auto/manual memory transfer with vectorize API