Adding [].shift,[].pop,[].sort,[].reverse

fix examples
added tests