Cleanup in FullPairwiseAlign and improving of scheduler