Three branch prediction algorithm implementations in Java