Added nextUntil() and prevUntil() (Issue #307)

Please do check the code thoroughly as this is one of my first contributions.