add prevAll, nextAll traversing methods

add $.prevAll
add $.nextAll
add prevAll test case
add nextAll test case
add documents for prevAll, nextAll
pull request #218, clean code