Detection of Event Related Potential for a Cognitive Task