Create spiral_matrix.cpp

using search algorithm to generate spiral matrix.