Adjusted filter menu generating method.

- Decreasing the usage of global variable.
- Auto-generating the category of insititutes by their ID. For more details, consult core/search_filter_data.php
- Adding object CategoryHandler to deal with the courses' categories