Add validation for the Bulgarian algorithm