Parallel count how many times every letter appears in str2

Now every rank>0 processes part of string, according to
start_index and end_index (indexes of letters in str2).
When all rank>0 finish calculation, rank=0 reduces
results and calculation can go further.