use less unsigned ints to avoid casting for comparisons with ints
change from unsigned ints in clustered-KDE