Changed ArrayQueue class according to a feedback. Added Test class for testing ArrayQueue.