Fixed bug with wrong final number of objects in dbscan (#1). Added several unit-tests for dbscan. Added examples for dbscan.