KLP matrix static library, first pass

Signed-off-by: Evan Senter <evansenter@gmail.com>