Refactored and added ability to filter segments by HaploScore using threshold matrix files