A simple Flow-Shop scheduler in Java