Measure the width of text in the terminal and build simple layouts!

add tests based on rust unicode-width, update and document the algorithm master