FPGA-based implementation of QR decomposition