Created tri2mat to convert triangular to full matrix.

Closes #4.