added smart distribution
still using dumb reduce
fixed too big messages not working
max length now 64*(2^16) bytes