rewrote (C): subroutine interface to use matrix struct
add: momentum, weighted, slack, ... fix: estimate.bandwidth, typos, ...