Function for finding all tags in a file
matrix multiplication in find best parse