Battleship solution based on patterns and probability densities

See for background info: http://www.datagenetics.com/blog/december32011/