Boolean Matrix using no extra space