changed index error in elnForward and added a function to take extended exponential of each element in an numpy.array