added more java algorithms