A java implemention of GBN algorithm