Add function to calculate repeated char sequence entropy