Wrote methodize, a function that converts a binary function to a method acting on an object