getting close with brute force version of search and find density peaks