Ported the matrix multiplication benchmark from JRuby's repository.