moved Java algorithms to the Java directory