Demo for Matlab vectorization tricks.