implemented branch, goto and idle pipeline