Add statement parser O(M^2) algorithm, M - statement length