funtion delta and accpets in NFA