rewrite of zim_link_analysis tool for better memory usage
fixed merge conflict