Fixed bug that skipped some SoxN sites for alignments, started averageCost class