re-implement W.Stein double-det with faster subroutines
lots of new methods and changes in Python wrapper