Fixed the condition multinomial problem (there was a missing m.copy somewhere), but the recursive functions still don't work.