WIP: support multiple wals

The input names should be sorted. 
serachIndex returns the array index of the last name that has a smaller raft index section than the given raft index.