First undersegmentation error implementation
Checked implementation of undersegmentation error