add algs4 assignment3