Created struct to include input and time

Need to find a new way to traverse the queue because struct isn't
letting me do it with int i