Add markdown documentation for SimpleArray class
Improve performance for length counting in set() method