added categorize_by_function script
Merge pull request #60 from wasade/categorize_by_function

added categorize_by_function script