Added collision detection
Added collision detection

- Added collision detection on ripple iterations
- Added calculation for random ripple origin
- Added some comments to functions
crintus/riptide,crintus/riptide