A simple IDEA algorithm implementation.