Replace transform by vectorized_transform.

Replace initialize_val by allocate and clear_val by deallocate.

Add vectorization to changes.h