Add force scaling parameter to spring layout.

Add parameter k to specify optimal distance between nodes in spring layout.
The default is 1/sqrt(number of nodes).
Rescale layout on every step to be in [0,1] box.