Analysis of ultrafast nonliner optical response of organic molecules and its application to all optical computing