Statistics for Design strategies for chemosensors and their applications in molecular scale logic gates