optimize::methods module for perl