Solving multiple kth smallest dissimilarity queries for non-metric dissimilarities with the GPU