fixed paste.cpp to handle mixed sized records between files.