longest common substring calculating length only

Program counting the length of longest common substring. For more about
algo and detail go through the comment's in program.