Fix bug in initial and rest method
Merge pull request #29 from kiennt/master

Fix bug in `initial` and `rest` function. Dont use `array.filter` function