Added more to impelmentation of longestCommongSubstring. Added matrix util
library for better abstraction