Russian-British School Algorithm