add analyze.cpp
the card memory function is finished