Create Boolean matrix