generates N50 histogram