Refactorization: Use templates and rValue reference
-> Performance gain of 3-4% on entire checking time.