ignore spaces in each line
impl leftish tree