added logic to search trains between two stations