Added push2 and unshift2 functions that take additional
Parameters to determine if item will be added to array