[Queue] implemented lifo stack

getAvgBasedOnValue

changes std::pair parameter to average, considering set threshold
return 1 if average was changed, return 0 if no