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

Which program would that be?