Cleaned up the top-variant handling, and improved pivot-patient similarity memoization