Create fmtrx.hpp

spiral function is buggy