Bug fix: replacing malloc with alloc for direc1
Merge branch 'ms3' of github.com:arashb/POS into ms3