Removing not used variable cost.

The cost is presumably calculated by looking at the salt, therefor it's
not used by the C or Java implementations.
Also removing autodetection of the cost, since that is useless, when
not using it.
Merge pull request #74 from jjoos/master

Removing not used variable cost.