Gram–Schmidt Algorithm for QR Factorisation