build error fix: remove trailing whitespaces, casting types minor edits based on alalek's feedback removing trailing whitespace using std::array for LUT argument