BERTAlgorithm