[algorithms] fixes error in gram_schmidt call