added reverseFilter for showing reverse of an array