Create matrix.pl

Created the perl version of the matrix chain multiplication algorithm which can be processed by part_3_functions.pl