Cleaned up matrix multication library.