added wrapper to peak search, added compile flag for transpose