Implemented Bully Algorithm in JAVA