Added tridiag function plus updated the directory file list to be recursive if so wanted