Implements flat line check

Should return a int flag here, so strict equality hopefully works as intended.  However, I might investigate if `numpy.allclose` might be any faster for the flat line check test.