Collecting tags in memory

Tags are not written to console only but added to a global array.

This allows for sorting the tags file for fast binary search in vim.