java-code (add my own understanding) of 《Algorithms 4th Edition》