Implement TeX style line break algorithm

Currently stretch only