Fixed a bug in writers.
Optimized a little the transposes and the binary