Scala code for finite idempotent algebras research