changed index from n to n-1 in bell_iterations file