Teenage girl wins science fair with anti-trolling software