Simplified a lot of things. Cast most of the kindList vector references
to (element). Optimized  binarySearch.