Hi
I read the entire specification and it seems like I can get it done with no problem :)
As this would hopefully be the first project I ever take here, I'm offering the lowest possible price in order to start gaining reputation.
In order to complete the task I'll create a Java project using the Eclipse IDE, I'll get down to the last details, and will hand over the best possible solution, considering all the requirements that the project defines.
As you've mentioned that you want both an algorithm and a diagram, I would be happy to know please if there's some exact type of diagram you would like to receive along with the code itself, or just a general sketch of the modules and their interactions.
Please let me know how may I further help with this one.
Best Regards,
igelka