added MNK loop order for complex, added K recursion