add isInterleaving.cpp