Add threshold.cpp to README