A toy implementation of the MPH in C++