Changed int to long for random walking. Added comments in Sample.java explaining why random walking might not work for a large space.