Made dynamic array allocation and update Readme