Updated files to add applyFunctionToBinary, and add specific interfaces for primitive types.