Optimize transposition

1. Let ufo handle memory allocation
2. Use SSE instructions