Complete matlab functions for advancing images

- matlab now has a max images to process in one run variable
- randomly selects one that needs to be processed, so multiple IPEs
  can run without duplicating too much effort
- for each image to score, only calculates scores that are not already there
- when scoring against an individual with multiple images, matlab properly
  calculates the max of all the images in the cohort