Added template function select_if() in variant.h; Unit-tested.

I can't see the differences between this file and test_variants.vcf, is it really different enough for you to need to create a new file? Or could you have just made the necessary changes to the original one ?