Chaff-inserting Algorithms and Robust Detection Algorithms for Information Flows