java work for introduction to computer algorithms