implemented front function
finished implementation of packetqueue