size function added
size function complete + toArray function added.