Fixed bugs in longestCommonSubstring impelmentation. Started to redo tests
for it as well.