added NewIn and performance test

NewIn: optimized in