added min spanning tree as well as longest pally in string and sentence no space