High-performance alignment methods for protein threading