added dynamic_array implementation, mostly complete
fixed off by one error, end was one beyond the actual range