How to create a distance matrix using the HC-SR04 sensor?

That Cpp library that I found to RW on the serial port.
SerialPort