add some Hash helpers
reimplement element duplication
add sampling of line features to insert point features on lines