adding another version of longest increasing subsequecen
clean up spaces and modifed max
max-- and clean up