libsequence: a C++ class library for evolutionary genetic analysis