Ideal bin number calculation for RUP clustering