Remove unnecessary np.outer function for better performance in google_matrix