Update smallest.cpp