Fixed a problem with the mask stack by reimplementing it in a new module.
Fixed a bug with prediction quality recording with multiple feature vectors.