Find enabled transitions
idenabled = findenabled(backward,mark)
This function used to find enabled transitions. The output is row vector that contains indices of enabled transitions. If there are no enabled transitions then the output is empty vector (denoted by []). In this situation Petri net is deadlock. This procedure is called by pipesimulation.