Added useful integer type computation function.
Minor improvement in gemm code.