Add det method for double and float tensor