Gravitational Collapse and Fragmentation of Molecular Cloud Cores with GADGET-2