further refactores harris helper function to return only the specified number of unique points