My Java implementation of the presudo code in the book Introdcution to Algorithms (Third Edition)