modify data structure for queue

modify data structure for queue
add fornt and rear