Built the function `by-method` mentioned in Issue 18

1. Built `by-method` function in util.clj.
2. Moved `make-function` function from core.clj to util.clj