PR: Implement "whiteness" computation support.

Closes #128.