Renamed transpose to trans.
Added matrix multiplication.
Renamed test function.