How to properly optimize MArray functions for speed? How to properly optimize MArray functions for speed? arrays arrays