Add pole.cpp (lecture 5)