algospot nerd2.cpp