Java booth's algorithm simulator