Create flatten_btree.cpp

Flatten a binary tree into a vector in in-order manner.