Error filtering, pair assembly and error correction for next-generation sequencing reads