Fixed swapaxes function in var, indentation error in test_basic and added lstsq function in ops with tests.