Small bug fixes in alignment functions

- Need to add hilbert transform

Signed-off-by: Dustin Ngo (MacBook) <dustin.ngo@gmail.com>