Change in geometry type

Lines created should be multilinestring, not geometrycollection. Also
added the ability to change memory allocation.