added comment for right array
 added a soluion for beads which is based on constructing increasing lengths of chain
 slight efficiency tweak
added solutions for milk2