Now using the SciPy squareform() function

squareform() is used to convert between matrices and vectors. Added a
“kind” parameter for specifying which format of matrix you are
supplying (vector or matrix).
Initial version

Provided a basic outline.