Updated NGram to make it static and easy to change N value.