CPU matrix transpose implemented