getFront was added
rename reverse to reverseQueue