added [:+] matrix indexing and faster summing