fixed class issue with node in getting max rep substrings