All the java algorithms up here!!