Switched arguments of the locate function.

The arguments to the locate function (from indexof) were in the wrong order. They have been switched.

Bug: 7
Created version 0.3.1.0.