improved template
array queue implentation
helped by Rodel Rebucas in parameter passing
avoiding globals, resulting to parameter passing functions
avoided using globals, reviewed parameter passing with Rodel Rebucas