adding project euler solution 39, runs a bit slow. Going by 10s seems a legit alternative because all the best perimeters were multiples of ten, but for thoroughness sake I'm leaving this how it is.