add class Unit(unit.h unit.cpp),main.cpp(for test Unit) and .gitignore